from PyQt5.QtWidgets import QMainWindow, QWidget, QVBoxLayout, QToolBar

class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.initUI()

    def initUI(self):
        # 基础设置
        self.setWindowTitle("CSDN超级下载器 v3.0")
        self.resize(1280, 800)
        self.setStyleSheet("background: #F0F0F0;")

        # 仅保留核心功能组件
        self.create_simplified_navigation()
        self.create_core_controls()

    def create_simplified_navigation(self):
        """简化后的导航栏（保留平台切换和下载按钮）"""
        toolbar = QToolBar()
        toolbar.addAction("平台切换")
        toolbar.addAction("批量下载")
        self.addToolBar(toolbar)

    def create_core_controls(self):
        """核心控制区（移除所有红框标注内容）"""
        central = QWidget()
        layout = QVBoxLayout()
        
        # URL输入组件
        url_input = QLineEdit(placeholderText="输入文档URL")
        layout.addWidget(url_input)
        
        # 功能按钮组
        btn_layout = QHBoxLayout()
        btn_layout.addWidget(QPushButton("智能解析"))
        btn_layout.addWidget(QPushButton("格式转换"))
        layout.addLayout(btn_layout)
        
        central.setLayout(layout)
        self.setCentralWidget(central)